package com.wisezone.permission.bean.form;

import java.util.ArrayList;
import java.util.List;

import com.wisezone.common.bean.form.BaseForm;
import com.wisezone.permission.bean.entity.WzDepartmentEntity;

/**
 * 
 *部门; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-07-29 16:24:37 update date 2010-07-29
 *         16:24:36
 * 
 */
public class WzDepartmentForm extends BaseForm {

	/**
	 * 
	 *ID
	 * 
	 */
	private Long id;

	/**
	 * 
	 *父ID
	 * 
	 */
	private WzDepartmentEntity parent;

	/**
	 * 
	 *述描
	 * 
	 */
	private String description;

	/**
	 * 
	 *名称
	 * 
	 */
	private String name;

	/**
	 * 状态
	 */
	private Integer state;

	/**
	 * 排序
	 */
	private Integer orderIndex;

	/**
	 * 子部门
	 */
	private List<WzDepartmentForm> childList = new ArrayList<WzDepartmentForm>();

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getOrderIndex() {
		return orderIndex;
	}

	public void setOrderIndex(Integer orderIndex) {
		this.orderIndex = orderIndex;
	}

	public WzDepartmentEntity getParent() {
		return parent;
	}

	public void setParent(WzDepartmentEntity parent) {
		this.parent = parent;
	}

	public List<WzDepartmentForm> getChildList() {
		return childList;
	}

	public void setChildList(List<WzDepartmentForm> childList) {
		this.childList = childList;
	}
	public void addChild(WzDepartmentForm entity) {
		this.childList.add(entity);
	}
	

}